// JORGE FERNANDO GOMEZ
// 1259371
// 189631
// LEC A1
// MARTIN MÜLLER
// D02
// YANG LIU


#ifndef PROCESS_H
#define PROCESS_H 1

#include <stdio.h>
#include <string.h>
#include <math.h>

#include "read.h"
#include "figStack.h"


/* FUNCTION PROTOTYPES. */

/* Each function's name is self-explanatory.
 * For detailed information, refer to ./funcs.c. */

int classifyLines( Line * Lines);

void getFigureSpecs( Line * Lines, FigStack * Figures, int currentLine );

void executeCommands ( FILE * outputFile,
                       Line * Lines, FigStack Figures );

void drawPrintFigure ( FILE * outputFile, FigStack * Figures, 
                       int figureCount, int type);

void translateFigure ( FigStack * Figures, int figureCount,
                       double tx, double ty);

void sendChildCommands (FILE * outputPipe, 
                        Line * Lines, int currentLine);

#endif /* end of include guard: PROCESS_H */
